package com.sure.supermarketserver.sell.statistics.dao;


import com.sure.supermarketserver.sell.statistics.StatisticsVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: fyf
 * @Date: 2021/07/19/11:28
 * @Description:
 */
public interface StatisticsDao {
    @Select("select or_id, DATE_FORMAT(or_time, '%Y-%m-%d') or_time, sum(or_sum) or_sum from order_information GROUP BY DATE_FORMAT(or_time, '%Y-%m-%d') order by or_time desc limit 7")
    List<StatisticsVO> statistics();
}
